package OOP.day11;

public enum Seasons {
    //编译后自动生成，底层自动实现
    //  public static final Seasons SPRING = new Seasons();
    //  public static final Seasons SUMMER = new Seasons();
    //  public static final Seasons AUTUMN = new Seasons();
    //  public static final Seasons WINTER = new Seasons();
    SPRING("春天", "温暖"),
    SUMMER("夏天","炎热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","寒冷");

    //编译后自动生成
    //  private Seasons() {}

    private String seasonName;
    private String seasonDesc;
    Seasons(String seasonName, String seasonDesc){
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public void setSeasonName(String seasonName) {
        this.seasonName = seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    public void setSeasonDesc(String seasonDesc) {
        this.seasonDesc = seasonDesc;
    }
}
